<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<title>列表</title> 
[#include "/admin/common/commonurl.html"]
[#include "/admin/common/scripts.html"]
<!-- inline scripts related to this page -->
<style type="text/css">
.disabled{
background: #E19487 !important;
}
</style>
</head>
<body class="no-skin">
	<div id="navbar" class="navbar navbar-default">
		[#include "/admin/common/navbar.html"]
		<!-- /.navbar-container -->
	</div>

	<div class="main-container" id="main-container">
		<div id="sidebar" class="sidebar  responsive">
			[#include "/admin/common/shortcuts.html"]
			<!-- /.sidebar-shortcuts -->

			<!-- .nav-list -->
			[#include "/admin/common/commonmenu.html"]
			<ul class="nav nav-list">
				[@menustag id=1]
				 [#list list as item]
					[@menu item "${menus!''}"]
					[/@menu] 
					[/#list] 
				[/@menustag]
			</ul>
			<!-- /.nav-list -->

			<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
				<i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
			</div>

		</div>

		<div class="main-content">
			<div class="breadcrumbs" id="breadcrumbs">
				<ul class="breadcrumb">
					<li><i class="ace-icon fa fa-home home-icon"></i> <a href="#">首页</a>
					</li>
					<li class="active">管理</li>
				</ul>
				<!-- /.breadcrumb -->
				<div class="nav-search" id="nav-search">
					<form class="form-search">
						<span class="input-icon">
							<input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
							<i class="ace-icon fa fa-search nav-search-icon"></i>
						</span>
					</form>
				</div>
				<!-- /.nav-search -->
			</div>

			<div class="page-content">
				[#include "/admin/common/page2.html"]
				 [#include "/admin/common/settings.html"]
				<form id="listForm" action="<#noparse>${siteurl}admin/</#noparse>${config_entity}/view_list.htm" method="get">
					<div class="row">
						<div class="col-xs-12">
							<div class="widget-box">
								<div class="widget-body">
									<div class="widget-main">
										<div class="row">
											<div class="col-xs-3">
												<a class="btn btn-primary btn-sm" href="<#noparse>${siteurl}admin/</#noparse>/${config_entity}/view_add.htm">
													<i class="ace-icon fa fa-pencil align-top bigger-125"></i>添加
												</a>
												<a class="disabled" id="deleteButton" href="#">
													<button   class="btn btn-danger btn-sm">
														<i class="ace-icon fa fa-trash-o align-top bigger-125"></i>批量删除
													</button>
												</a>
											</div>
											<div class="col-xs-12 col-sm-6 form-inline">
												<div class="input-group">
													<div class="btn-group">
														<button class="btn btn-primary btn-white dropdown-toggle" data-toggle="dropdown">
															<span id="searchval">筛选 </span>
															<i class="ace-icon fa fa-angle-down icon-on-right"></i>
														</button>
														<ul id="searchPropertyOption" class="dropdown-menu ">
														    [@searchitem name="username" value ="用户名"/]
															[@searchitem name="name" value ="姓名"/]
														</ul>
													</div>
												</div>
												<div class="input-group">
													<input type="text" name="searchValue"   value="${(page.searchValue)!''}"  placeholder="关键词" class="form-control search-query">
													<span class="input-group-btn">
														<button class="btn btn-purple btn-sm" type="submit">
															搜索<i class="ace-icon fa fa-search icon-on-right bigger-110"></i>
														</button>
													</span>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="table-responsive">
								<table id="listTable" class="table table-striped table-bordered table-hover">
									<tr>
										<td><input type="checkbox" id="selectAll"></td>
										<td class="col-xs-3">名称</td>
										<td class="col-xs-7 text-center">描述</td>
										<td class="col-xs-2 text-center">操作</td>
									</tr>
									[#if list??] 
										[#list list as item]
										<tr id="trr<#noparse>${item.id!''}</#noparse>">
											<td>
												<input type="checkbox" value="<#noparse>${item.id}</#noparse>" name="ids">
											</td>
											<td><#noparse>${item.name!""}</#noparse></td>
											<td class="text-left"><#noparse>${item.description!""}</#noparse></td>
											<td class="text-center">
												<div style="display: inline-block;">
													<a class="btn btn-xs btn-info" href="<#noparse>${siteurl}admin/</#noparse>${config_entity}/view_edit.htm?id=<#noparse>${item.id!''}</#noparse>&pageNumber=<#noparse>${page.pageNumber}</#noparse>">
														<i class="icon-trash bigger-120">更新</i>
													</a>
													<a class="btn btn-xs btn-danger" onclick="return confirm('删除后无法恢复,确定要删除吗')" href="<#noparse>${siteurl}admin/</#noparse>${config_entity}/model_delete.htm?id=<#noparse>${item.id!''}</#noparse>&pageNumber=<#noparse>${page.pageNumber}</#noparse>">
														<i class="icon-trash bigger-120">删除</i>
													</a>
												</div>
											</td>
										</tr>
										[/#list]
									[/#if]
								</table>
							</div>
							[@pager page ][/@pager]
						</div>
					</div>
				</form>
			</div>
		</div>
		<!-- /.main-content -->
		[#include "/admin/common/footer.html"]

	</div>
	<!-- /.main-container -->
	<!-- basic scripts -->
</body>
</html>